package com.zxkj.domain.mapper;

import com.zxkj.domain.entity.ShowCorp;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by Administrator on 2017/7/12.
 */
@Transactional
public interface ShowCorpRepository extends JpaRepository<ShowCorp, Integer> {
    @Modifying
    @Query("update ShowCorp t set t.needUpdate=1")
    void updateNeedUpdateToOne();
}
